@extends('layouts.app')
@section('title','后台访问判断')

@section('content')
    <div class="row">
        <div class="offset-md-4 col-md-4">
            <div class="card">
                <div class="card-body">
                    @if(Auth::check())
                        <h5 class="text-center">当前登录用户无权访问</h5>
                        <div class="text-center mt-3">
                            <a class="btn btn-outline-primary btn-sm" href="{{route('root')}}">
                                <i class="fa-solid fa-house-flag"></i>
                                返回首页
                            </a>
                        </div>
                    @else
                        <h5 class="text-center">请先登录</h5>
                        <div class="text-center mt-3">
                            <a class="btn btn-outline-primary btn-sm" href="{{route('login')}}">
                                <i class="fa-solid fa-right-to-bracket"></i>
                                登录
                            </a>
                        </div>
                    @endif
                </div>
            </div>
        </div>
    </div>
@stop
